-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Large-scale refactoring #63
Conversation
e3af3e5
to
e5f77ad
Compare
Coverage is now ≅99%. I've also reinstated backgroundColour but made it throw a deprecation notice. |
Updated and merged the "pure SVG context" PR (#46) into this one. |
readme.md
Outdated
@@ -99,12 +99,12 @@ A convenience setter: Set as many values as you choose by passing a big object t | |||
|
|||
This get the frame to try and automatically comput its top margin. _Not really reccomended though it it used by the pre-packaged webframes_. | |||
|
|||
<a id="frame-backgroundColour" href="#frame-backgroundColour">#</a>frame.**backgroundColour(_string_)** | |||
<a id="frame-backgroundColor" href="#frame-backgroundColor">#</a>frame.**backgroundColor(_string_)** | |||
|
|||
Set the background colour of the frame. For the single argument you can use the same css color naming schemes that you use in HTML, whether that's color names (that is red), rgb values (that is rgb(255,0,0)), hex values, rgba values, etc. If no argument is specified returns the current value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change colour
in "background colour of the frame" to color
for consistency.
For consistency, I think we should take out this line: https://github.com/Financial-Times/g-chartframe/blob/refactoring/src/videoframe.js#L10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for doing this!
Good in-person suggestion to wait until the new year to merge this in.
This does a llllllllot.
g
element if no watermark is present (breaking change)colour
tocolor
(breaking change)Fixes #57; fixes #52; fixes #45.